package com.cx.auth.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("用户登录注册对象")
public class ChatUserDTO implements Serializable
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("邮箱地址")
    @NotNull(message="邮箱不能为空")
    private String email;

    @ApiModelProperty("验证码")
    @NotNull(message="验证码不能为空")
    private String code;

    @ApiModelProperty("昵称")
    private String nickname;
}